<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>云钢</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui-flex.css">
    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
    <style>
        body{ background-color: white; }
        .aui-bar-light{ color: black; }
        .aui-searchbar{ background-color: #ffffff; }
        .aui-bar-nav.aui-bar-light .aui-iconfont{ color: black; }
    </style>
</head>

<body>
    <header class="aui-bar aui-bar-nav aui-bar-light" id="header">
        <a class="aui-pull-left aui-btn" onclick="backpage()">
            <span class="aui-iconfont aui-icon-left"></span>
        </a>
        <div class="aui-title">求购信息</div>
    </header>
    <div id="app" v-cloak>
        <div class="aui-searchbar" id="search">
            <div class="aui-searchbar-input aui-border-radius bg-gray">
                <i class="aui-iconfont aui-icon-search"></i>
                <input type="search" placeholder="请输入关键词" id="search-input">
                <div class="aui-searchbar-clear-btn">
                    <i class="aui-iconfont aui-icon-close"></i>
                </div>
            </div>
            <div class="margin-right" tapmode onclick="openDialog('text')"><i class="aui-iconfont aui-icon-paper"></i>发布</div>
        </div>
        <div class="bg-gray padding-top">
            <div class="padding-tb aui-flex-col aui-flex-between" style="background: #fff;">
                <div>全部规格<i class="aui-iconfont aui-icon-down"></i></div>
                <div>数量<i class="aui-iconfont aui-icon-down"></i></div>
                <div>时间<i class="aui-iconfont aui-icon-down"></i></div>
            </div>
        </div>
        <div class="bg-gray padding-tb padding-lr">
            <div class="bg-white">
                <div class="aui-card-list aui-border-t aui-border-b">
                    <div class="aui-card-list-header aui-card-list-user">
                        <div class="aui-card-list-user-avatar">
                            <img src="../../image/me/header.jpg" class="aui-img-round">
                        </div>
                        <div class="aui-card-list-user-name">
                            <div class="aui-font-size-16">钢材售卖货品名称</div>
                            <div class="aui-text-danger text-md text-bold">1.2元/吨</div>
                        </div>
                        <div class="aui-card-list-user-info">
                            <div class="aui-label aui-label-success aui-label-outlined">重型料</div>
                        </div>
                    </div>
                    <div class="aui-card-list-content aui-border-t" style="margin-left: 3.2rem;display: flex;justify-content: space-between;">
                        <ul class="aui-list aui-list-noborder">
                            <div class="aui-list-item aui-padded-l-0" style="min-height: 1.2rem;">
                                <div class="aui-list-item-inner" style="min-height: 1.2rem;">
                                    <div class="aui-list-item-title aui-font-size-14 goods-title aui-text-danger">
                                        <i class="aui-iconfont aui-icon-calendar"></i>
                                        <span class="aui-text-danger">剩余数量：548吨</span>
                                    </div>
                                </div>
                            </div>
                            <div class="aui-list-item aui-padded-l-0" style="min-height: 1.2rem;">
                                <div class="aui-list-item-inner" style="min-height: 1.2rem;">
                                    <div class="aui-list-item-title aui-font-size-14 goods-title text-gray">
                                        <i class="aui-iconfont aui-icon-date"></i>
                                        <span class="text-gray">时间：2021-04-26 17:23</span>
                                    </div>
                                </div>
                            </div>
                        </ul>
                        <div class="aui-btn aui-btn-info round xq margin-top margin-right" tapmode>了解详情</div>
                    </div>
                </div>
            </div>

            <div class="bg-white">
                <div class="aui-card-list aui-border-t aui-border-b">
                    <div class="aui-card-list-header aui-card-list-user">
                        <div class="aui-card-list-user-avatar">
                            <img src="../../image/me/header.jpg" class="aui-img-round">
                        </div>
                        <div class="aui-card-list-user-name">
                            <div class="aui-font-size-16">钢材售卖货品名称</div>
                            <div class="aui-text-danger text-md text-bold">1.2元/吨</div>
                        </div>
                        <div class="aui-card-list-user-info">
                            <div class="aui-label aui-label-success aui-label-outlined">重型料</div>
                        </div>
                    </div>
                    <div class="aui-card-list-content aui-border-t" style="margin-left: 3.2rem;display: flex;justify-content: space-between;">
                        <ul class="aui-list aui-list-noborder">
                            <div class="aui-list-item aui-padded-l-0" style="min-height: 1.2rem;">
                                <div class="aui-list-item-inner" style="min-height: 1.2rem;">
                                    <div class="aui-list-item-title aui-font-size-14 goods-title aui-text-danger">
                                        <i class="aui-iconfont aui-icon-calendar"></i>
                                        <span class="aui-text-danger">剩余数量：548吨</span>
                                    </div>
                                </div>
                            </div>
                            <div class="aui-list-item aui-padded-l-0" style="min-height: 1.2rem;">
                                <div class="aui-list-item-inner" style="min-height: 1.2rem;">
                                    <div class="aui-list-item-title aui-font-size-14 goods-title text-gray">
                                        <i class="aui-iconfont aui-icon-date"></i>
                                        <span class="text-gray">时间：2021-04-26 17:23</span>
                                    </div>
                                </div>
                            </div>
                        </ul>
                        <div class="aui-btn aui-btn-info round xq margin-top margin-right">了解详情</div>
                    </div>
                </div>
            </div>

            <div class="bg-white">
                <div class="aui-card-list aui-border-t aui-border-b">
                    <div class="aui-card-list-header aui-card-list-user">
                        <div class="aui-card-list-user-avatar">
                            <img src="../../image/me/header.jpg" class="aui-img-round">
                        </div>
                        <div class="aui-card-list-user-name">
                            <div class="aui-font-size-16">钢材售卖货品名称</div>
                            <div class="aui-text-danger text-md text-bold">1.2元/吨</div>
                        </div>
                        <div class="aui-card-list-user-info">
                            <div class="aui-label aui-label-success aui-label-outlined">重型料</div>
                        </div>
                    </div>
                    <div class="aui-card-list-content aui-border-t" style="margin-left: 3.2rem;display: flex;justify-content: space-between;">
                        <ul class="aui-list aui-list-noborder">
                            <div class="aui-list-item aui-padded-l-0" style="min-height: 1.2rem;">
                                <div class="aui-list-item-inner" style="min-height: 1.2rem;">
                                    <div class="aui-list-item-title aui-font-size-14 goods-title aui-text-danger">
                                        <i class="aui-iconfont aui-icon-calendar"></i>
                                        <span class="aui-text-danger">剩余数量：548吨</span>
                                    </div>
                                </div>
                            </div>
                            <div class="aui-list-item aui-padded-l-0" style="min-height: 1.2rem;">
                                <div class="aui-list-item-inner" style="min-height: 1.2rem;">
                                    <div class="aui-list-item-title aui-font-size-14 goods-title text-gray">
                                        <i class="aui-iconfont aui-icon-date"></i>
                                        <span class="text-gray">时间：2021-04-26 17:23</span>
                                    </div>
                                </div>
                            </div>
                        </ul>
                        <div class="aui-btn aui-btn-info round xq margin-top margin-right">了解详情</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/vue.js"></script>
<script type="text/javascript" src="../../script/aui-dialog.js" ></script>
<script type="text/javascript">

    var vm = {
        el: '#app',
        data: {
            list: []
        },
        mounted: function(){
            this.getList();
        },
        methods: {
            getList: function(){
                let that = this;
            }
        }
    }
    apiready = function() {
        $api.fixStatusBar(
            $api.byId("header")
        );
        // window.app = new Vue(vm);
        

    };

    function backpage(){
        api.closeWin({
            name: api.winName
        })
        
    };
    
    apiready = function () {
        api.parseTapmode();
    }
    var dialog = new auiDialog();
    function openDialog(type){
        switch (type) {
            case "text":
                dialog.alert({
                    title:"提示",
                    msg:'抱歉，您当前并非是采购商，无法使用本功能，请联系平台客服进行申请~',
                    buttons:['取消','确定']
                },function(ret){
                    console.log(ret)
                })
                break;
            case "callback":
                dialog.alert({
                        title:"弹出提示",
                        msg:'这里是内容',
                        buttons:['取消','确定']
                    },function(ret){
                        if(ret){
                            dialog.alert({
                                title:"提示",
                                msg:"您点击了第"+ret.buttonIndex+"个按钮",
                                buttons:['确定']
                            });
                        }
                    })
                break;
            case "input":
                dialog.prompt({
                    title:"弹出提示",
                    text:'默认内容',
                    type:'number',
                    buttons:['取消','确定']
                },function(ret){
                    if(ret.buttonIndex == 2){
                        dialog.alert({
                            title:"提示",
                            msg: "您输入的内容是："+ret.text,
                            buttons:['确定']
                        });
                    }
                })
                break;
            default:
                break;

        }
    }
</script>

</html>
